﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SystmicFunction.IRMHelper
{
    public static class ExceptionHandle
    {
        public static Object CheckException(Exception exception, Dictionary<String, Object> dict)
        {
            return dict.SingleOrDefault(m => m.Key == exception.GetType().FullName).Value;
        }
    }
}
